/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="TIPOCIRURGIA")
public class TipoCirurgiaProteu implements Serializable{

    @Id
    @Column(name="TCR_ST_CODIGO")
    private String tcrStCodigo;
    @Column(name="TCR_ST_DESCRICAO")
    private String tcrStDescricao;

    public String getTcrStCodigo() {
        return tcrStCodigo;
    }

    public void setTcrStCodigo(String tcrStCodigo) {
        this.tcrStCodigo = tcrStCodigo;
    }

    public String getTcrStDescricao() {
        return tcrStDescricao;
    }

    public void setTcrStDescricao(String tcrStDescricao) {
        this.tcrStDescricao = tcrStDescricao;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final TipoCirurgiaProteu other = (TipoCirurgiaProteu) obj;
        if ((this.tcrStCodigo == null) ? (other.tcrStCodigo != null) : !this.tcrStCodigo.equals(other.tcrStCodigo)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 73 * hash + (this.tcrStCodigo != null ? this.tcrStCodigo.hashCode() : 0);
        return hash;
    }



}
